<template>
  <!-- 使用 -->
  <myCom @childEvent="handleChild" data="666" />
</template>

<script setup>
// 引入
import myCom from './components/myCom.vue'

const handleChild = (data) => {
  console.log('子传父成功', data);
}
</script>